package com.xidian.zhiancloud.dao.riskcontrol.riskidenva;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskAuditRecordsList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 风险评价审核-审核记录
 */
public interface TRiskAuditRecordsMapper extends BaseMapper<TRiskAuditRecordsList> {

    int insertTRiskAuditRecords(@Param("data") List<TRiskAuditRecordsList> data);

    List<TRiskAuditRecordsList> getByTrarId(
            @Param("trarId") Long trarId, @Param("companyId") Long companyId);

    List<TRiskAuditRecordsList> getByRIESIdAndRPointId
            (@Param("companyId") Long companyId,@Param("taskAllocatId") String taskAllocatId);

    int updateByIdAndPersoncontrol
            (@Param("id") String id,@Param("riskpointsId") String riskpointsId,
             @Param("personcontrol") String personcontrol);

}
